home *** CD-ROM | disk | FTP | other *** search
/ BMUG Revelations / BMUG Revelations.toast / Programming / Programming Languages / XLisp 2.1e3 / lisp / fact.lsp < prev    next >
Encoding:
Lisp/Scheme  |  1992-10-29  |  74 b   |  4 lines  |  [TEXT/xlsp]

  1. (defun fact (n)
  2.        (cond ((= n 1) 1)
  3.          (t (* n (fact (- n 1))))))
  4.